$OpenBSD: patch-lib_base_CMakeLists_txt,v 1.6 2017/02/02 21:36:18 sthen Exp $
--- lib/base/CMakeLists.txt.orig	Tue Jan 31 10:18:20 2017
+++ lib/base/CMakeLists.txt	Thu Feb  2 14:05:28 2017
@@ -51,8 +51,8 @@ add_library(base SHARED ${base_SOURCES})
 
 target_link_libraries(base ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${YAJL_LIBRARIES} mmatch socketpair)
 
-if(HAVE_LIBEXECINFO)
-    target_link_libraries(base execinfo)
+if(Backtrace_FOUND)
+  target_link_libraries(base ${Backtrace_LIBRARIES})
 endif()
 
 include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
